<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>crm</title>
    <link rel="stylesheet" href="../layui/css/layui.css"/>
    <script src="../js/jquery-1.12.3.min.js"></script>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-theme.min.css"/>
    <script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
    <link href="../bootstrapv/css/bootstrapValidator.min.css" rel="stylesheet" />
    <script type="text/javascript" src="../bootstrapv/js/bootstrapValidator.min.js"></script>

    <script src="../js/common.js"></script>
    <script src="../layui/layui.js"></script>
    <style>
        .btnDiv{
            text-align: center;
        }
    </style>
</head>
<body>

<table class="layui-hide" id="mainDataGrid" lay-filter="mainDataGrid"></table>

<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add">添加数据</button>
        <button class="layui-btn layui-btn-sm" lay-event="delete">批量删除</button>
        <button class="layui-btn layui-btn-sm" lay-event="search">条件查询</button>
    </div>
</script>

<script type="text/html" id="linebar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
</script>

<!--添加表单-->
<div id="addFormDiv" class="container-fluid">
    <div class="formDivClass row">
        <form action="/roleRest/saveOrUpdate" id="addForm" class="form-horizontal">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">角色名称:</label>
                    <div class="col-sm-9">
                        <input name="po.roleName" type="text" class="form-control" placeholder="请输入角色名称"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">拥有权限:</label>
                    <div class="col-sm-9">
                        <input name="po.rightName" type="text" class="form-control" placeholder="请输入拥有权限"/>
                    </div>
                </div>
            </div>
            <div class="btnDiv">
                <button type="submit" class="layui-btn">提交</button>
                <button type="reset" class="layui-btn layui-btn-danger">重置</button>
            </div>
        </form>
    </div>
</div>

<!--查询表单-->
<div id="searchFormDiv" class="container-fluid">
    <div class="formDivClass row">
        <form id="searchForm" class="form-horizontal">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">平台名称:</label>
                    <div class="col-sm-9">
                        <input id="roleNameSearch" name="po.roleName" type="text" class="form-control" placeholder="请输入平台名称"/>
                    </div>
                </div>
            </div>
            <div class="btnDiv">
                <button type="submit" class="layui-btn">查询</button>
                <button type="reset" class="layui-btn layui-btn-danger">重置</button>
            </div>
        </form>
    </div>
</div>

<!--修改表单-->
<div id="updateFormDiv" class="container-fluid">
    <div class="formDivClass row">
        <form action="/roleRest/saveOrUpdate" id="updateForm" class="form-horizontal">
            <input type="hidden" name="po.id"/>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">角色名称:</label>
                    <div class="col-sm-9">
                        <input name="po.roleName" type="text" class="form-control" placeholder="请输入角色名称"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">拥有权限:</label>
                    <div class="col-sm-9">
                        <input name="po.rightName" type="text" class="form-control" placeholder="请输入拥有权限"/>
                    </div>
                </div>
            </div>
            <div class="btnDiv">
                <button type="submit" class="layui-btn">提交</button>
                <button type="reset" class="layui-btn layui-btn-danger">重置</button>
            </div>
        </form>
    </div>
</div>

<script src="../js/role.js"></script>
</body>
</html>